************************************************************************************************************
Replication Files for "Hometown Advantage: Voter Preferences for Community Embeddedness in Local Contests"
Authors: Ornstein, Heideman, Moy, & Schiff (2024)
Date Created: 2024-08-14
************************************************************************************************************

There are 32 files included in this repository. To reproduce all figures and tables, run the 'main.R' script.

Scripts:
- main.R (R script to produce all tables and figures from the paper)

Data:
- CES2022_UGA.RData (survey dataset from CES 2022)

Images Files:
- fig_2.png - fig_4.png (figures appearing in the main text)
- fig_a1.png - fig_a26.png (figures appearing in supplementary materials)

We used the following software and software packages to produce our results:

R version 4.4.1 (2024-06-14 ucrt) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64

attached packages:
 [1] haven_2.5.4            cregg_0.4.0            modelsummary_2.1.1    
 [4] marginaleffects_0.21.0 estimatr_1.0.4         lubridate_1.9.3       
 [7] forcats_1.0.0          stringr_1.5.1          dplyr_1.1.4           
[10] purrr_1.0.2            readr_2.1.5            tidyr_1.3.1           
[13] tibble_3.2.1           ggplot2_3.5.1          tidyverse_2.0.0    

loaded via a namespace (and not attached):
 [1] sandwich_3.1-0    utf8_1.2.4        generics_0.1.3   
 [4] stringi_1.8.4     lattice_0.22-6    digest_0.6.36    
 [7] hms_1.1.3         magrittr_2.0.3    grid_4.4.1       
[10] timechange_0.3.0  fastmap_1.2.0     Matrix_1.7-0     
[13] backports_1.5.0   DBI_1.2.3         Formula_1.2-5    
[16] survival_3.6-4    fansi_1.0.6       scales_1.3.0     
[19] cli_3.6.3         mitools_2.4       rlang_1.1.4      
[22] munsell_0.5.1     splines_4.4.1     withr_3.0.1      
[25] tools_4.4.1       tzdb_0.4.0        colorspace_2.1-1 
[28] broom_1.0.6       vctrs_0.6.5       R6_2.5.1         
[31] zoo_1.8-12        lifecycle_1.0.4   ggstance_0.3.7   
[34] insight_0.20.2    pkgconfig_2.0.3   pillar_1.9.0     
[37] gtable_0.3.5      data.table_1.15.4 glue_1.7.0       
[40] Rcpp_1.0.13       xfun_0.46         lmtest_0.9-40    
[43] tidyselect_1.2.1  knitr_1.48        rstudioapi_0.16.0
[46] htmltools_0.5.8.1 tables_0.9.28     survey_4.4-2     
[49] compiler_4.4.1